package com.cn.order.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "订单model")
public class Order {
        @ApiModelProperty(value = "订单ID")
        private String orderNumber;

        @ApiModelProperty(value = "用户ID")
        private Integer userId;

        @ApiModelProperty(value = "订单状态")
        private String orderStatus;

        @ApiModelProperty(value = "金额")
        private BigDecimal amount;

        @ApiModelProperty(value = "产品ID")
        private Integer productId;

        @ApiModelProperty(value = "优惠券ID")
        private Integer couponId;

        @ApiModelProperty(value = "出行人数")
        private Integer visitorNumber;

        @ApiModelProperty(value = "出行日期")
        private String travelDate;

        @ApiModelProperty(value = "订单日期")
        private Date orderDate;

        @ApiModelProperty(value = "退款原因")
        private String reason;
}

